package com.xiaoxin.controller;

import com.xiaoxin.model.vo.HuanXinUserVo;
import com.xiaoxin.service.HuanXinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiaoxiaode
 * @date 2021-09-07-19:49
 **/

@RestController
@RequestMapping("/huanxin")
public class HuanXinController {

    @Autowired
    private HuanXinService huanXinService;

    /*
    * 查找用户环信账号
    * */
    @GetMapping("/user")
    public ResponseEntity findHuanxinUser(){
        HuanXinUserVo vo=huanXinService.findHuanxinUser();
        return ResponseEntity.ok(vo);
    }
}
